package com.freestyle.seatabusiness.authorization;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.error.DefaultErrorAttributes;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/**
 * Created by rocklee on 2021/12/16 12:04
 */
@SpringBootApplication(scanBasePackages = {"com.freestyle","com.freestyle.sentinel.config"})
@MapperScan({"com.freestyle.seatabusiness.authorization.**.dao"})
//@EnableAspectJAutoProxy(proxyTargetClass=true,exposeProxy = true)
@EnableDiscoveryClient
@EnableTransactionManagement
@EnableDubbo
//@PropertySource(value = "classpath:/config/nacos-provider-config.propertie")
public class AuthorizationApplication {
  /*@Bean
  public DefaultErrorAttributes errorAttributes(){
    return new DefaultErrorAttributes();
  }*/
  public static void main(String[] args) {
    SpringApplication.run(AuthorizationApplication.class, args);
  }
}
